package master.repositorio;

public class Miclase {
    
    private int var;
    
    public Miclase() {
        super();        
    }

    public void setVar(int var) {
        this.var = var;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) {
            return true;
        }
        if (!(object instanceof Miclase)) {
            return false;
        }
        final Miclase other = (Miclase) object;
        if (var != other.var) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 37;
        int result = 1;
        result = PRIME * result + var;
        return result;
    }

    public int getVar() {
        return var;
    }
    
    public String toString(){
        return "Valor: "+getVar();
    }
}
